package com.lagou.io;

import java.io.InputStream;

/**
 * 读取配置文件信息放到内存
 * sqlMapper.xml和mapper.xml
 */
public class Resources {

    //根据配置文件的路径，将配置文件加载为字节输入流，存储在内存中
    public static InputStream getResourceAsStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }

}
